package org.kl.bpm.entity.conf;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.IdEntity;
import org.kl.bf.entity.basic.CodeValues;

/**
 * 
 * @Author hqm
 * @CreateTime 2014年5月25日 下午8:05:24
 */
@Entity
@Table(name = "bpm_form_template")
public class BpmFormTemplate extends IdEntity {
	private static final long serialVersionUID = 0L;
	private CodeValues type;
	private String name;
	private String content;

	public BpmFormTemplate() {
	}

	public BpmFormTemplate(CodeValues type, String name, String content) {
		this.type = type;
		this.name = name;
		this.content = content;
	}

	@ManyToOne
	@JoinColumn(name = "template_type")
	public CodeValues getType() {
		return type;
	}

	public void setType(CodeValues type) {
		this.type = type;
	}

	/** @return null. */
	@Column(name = "TEMPLATE_NAME", length = 200)
	public String getName() {
		return this.name;
	}

	/**
	 * @param name
	 *            null.
	 */
	public void setName(String name) {
		this.name = name;
	}

	/** @return null. */
	@Column(name = "TEMPLATE_CONTENT", length = 2000)
	public String getContent() {
		return this.content;
	}

	/**
	 * @param content
	 *            null.
	 */
	public void setContent(String content) {
		this.content = content;
	}
}
